﻿@model ZhongheCms.Models.GswTblMember
@{
	
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string mystate = "[审核中]";
    if (Model.AuditFlag == 1)
    {
        mystate = "";
    }
    string jobState = "";
    int i = 0;
    string colorname = "";
}
@section head
{
    <link href="/assets/sunjob/css/user.css" rel="stylesheet" />
    <script type="text/javascript">
        function funadd() {
            document.location = "/SunJob/MemberJobpubAdd/@Model.Id";
        }
    </script>
}
<div class="container_24 clearfix" id="orderWrapper">
      <table width="1170" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="44" align="left" valign="top">
                <table width="1170" height="36" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" valign="middle" class="ling">首页　&gt; <a href="/SunJob/MemberCenter">会员中心</a>&gt;职位发布</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <table width="1170" border="0" cellpadding="0" cellspacing="0">
                    <tr align="left" valign="top">
                        <td width="190">
                            <table width="190" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="102" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td width="188" height="100" align="center" valign="middle" style="background-image: url(/assets/sunjob/images/left-huiyuanbg.jpg)">
                                                    <table width="150" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="name">
                                                                <img src="/assets/sunjob/images/left-huiyuanpic.jpg" width="24" height="18" align="absmiddle">&nbsp; @Model.MemberName</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">积分：@Model.MemberPoint</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">@Model.MemberType <span>@mystate</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="leftxiu"><a href="/SunJob/UserInfoEdit/@Model.Id">修改个人资料</a></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="234" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" bgcolor="#FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-tongzhi.jpg" width="188" height="31"></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg/@Model.Id">录取通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg1/@Model.Id">领薪通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberTime/@Model.Id">我的时间</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberJob/@Model.Id">我的工作</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberHelpAdd/@Model.Id">需求发布</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberHelpList/@Model.Id">我的需求</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberOrder/@Model.Id">我的订单</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberJobpub/@Model.Id">职位发布</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="128" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" style="background-color: #FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-geren.jpg" width="188" height="31"></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/UserInfoEdit/@Model.Id">个人资料</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/ChangePassword/@Model.Id">修改密码</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberPoint/@Model.Id">我的积分</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                        <td width="15">&nbsp;</td>
                        <td>
                             
                             <table width="965" height="498" border="0" cellpadding="0" cellspacing="1" style="background-color: #FEA700;">
                                <tr>
                                    <td align="center" valign="top" style="background-color: #FFFFFF">
                                       <table  width="965"  border="0" cellpadding="0" cellspacing="0">
                                           <tr align="center" valign="middle" class="shijian" background="/assets/sunjob/images/baochebg.jpg">
                                               <td  width="8%" height="44">
                                                  修改
                                               </td>
                                               <td  width="10%" height="44">
                                                  发布日期
                                               </td>
                                               <td  width="10%">
                                                 职位编号
                                               </td>
                                               <td  width="20%">
                                                   职位名称
                                               </td>
                                               <td  width="18%">
                                                   工作日期
                                               </td>
                                               <td  width="18%">
                                                   工作地点
                                               </td>
                                                <td  width="8%">
                                                  状态
                                               </td>
                                                <td  width="8%" height="44">
                                                  删除
                                               </td>
                                           </tr>
          @foreach (var item in Model.JobInfos)
                {
                    if (i%2 == 0)
                    {
                        colorname = "#FDE3CC";
                    }
                    else
                    {
                        colorname = "#FFFFFF";
                    }
                    jobState = "";
                    if (item.JobState == 0)
                    {
                        jobState = "未审核";

                    }
                    if (item.JobState == 1)
                    {
                        jobState = "进行中";

                    }
                    if (item.JobState == 2)
                    {
                        jobState = "已结束";

                    }
                    <tr align="center" valign="middle" bgcolor="@colorname" class="leftmenu" height="34">
                        <td>
                            @if (item.JobState == 0)
                            {
                                <span> <a  href="/SunJob/MemberJobpubAdd/@Model.Id?jobid=@item.Id">修改</a></span>
                            }
                        </td>
                        <td> @item.PubDate.ToShortDateString()</td>
                        <td>
                          @*  @item.JobNo*@
                            <a  href="/SunJob/MemberJobpubView/@Model.Id?jobid=@item.Id"> @item.JobNo</a>
                        </td>
                        <td>
                           @* @item.JobTitle*@
                           <a  href="/SunJob/MemberJobpubView/@Model.Id?jobid=@item.Id">@item.JobTitle</a>

                        </td>
                        <td>
                            <a  href="/SunJob/MemberJobpubView/@Model.Id?jobid=@item.Id">@item.WorkDate
                            @if (!string.IsNullOrEmpty(item.WorkTime))
                            {
                                <br /><span>@item.WorkTime</span>
                            }</a>
                           @*    @if (!string.IsNullOrEmpty(item.WorkTime))
                            {
                                <br /><span>@item.WorkTime</span>
                            }*@
                        </td>
                        <td>
                            <a  href="/SunJob/MemberJobpubView/@Model.Id?jobid=@item.Id">   @item.Workplace </a>
                          @*  @item.Workplace*@
                        </td>
                        <td>
                            @jobState
                        </td>
                         <td>
                             @if (item.JobState == 0)
                            {
                              <a  href="/SunJob/MemberJobpubDel/@Model.Id?jobid=@item.Id">  <span>删除</span></a>
                            }
                        </td>
                    </tr>
                    i++;
                }
                                           <tr align="center" valign="middle" bgcolor="@colorname" class="leftmenu" height="34">
                                                <td  width="100%" height="44" colspan="8">
                                                                           <div class="submitWrapper3">
                        <input type="button" value="职位发布" class="button button01" onclick="funadd()"/>
                    </div>
                                               </td>
                                           </tr>
                
        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
